import { axios } from '@/utils/request'

const api = {
  list: '/attr-library/list',
  del: '/attr-library/del',
  save: '/attr-library/save',
  status: '/attr-library/status'
}

export default api

export function list (parameter) {
  return axios({
    url: api.list,
    method: 'get',
    params: parameter
  })
}

export function del (parameter) {
  return axios({
    url: api.del,
    method: 'get',
    params: parameter
  })
}

export function statusAll (parameter) {
  return axios({
    url: api.status,
    method: 'get',
    params: parameter
  })
}

export function save (parameter) {
  return axios({
    url: api.save,
    method: 'post',
    data: parameter
  })
}
